<?php $category = pc_variable("commerce.category");
$categories = pc_variable("commerce.categories");
if($category !== null) {
	$categories = $category->get("categories");
}
if($categories !== null && $categories->size() > 0) { ?>
<h2><?php pc_echo(pc_message("catalog.categories")); ?></h2>
<?php pc_pagelet("categories/list",
    array("commerce.categories" => $categories)); 
}
$articles = pc_variable("commerce.articles");
if($category !== null && $category->get("articles")->size() > 0) {
    $articles = $category->get("articles");
}
if($articles !== null) { ?>
<h2><?php pc_echo(pc_message("catalog.articles")); ?></h2>
<?php pc_pagelet("articles/list",
    array("commerce.articles" => $articles)); 
} ?>